home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / binutils.7 / binutils / binutils-2.7 / bfd / doc / Makefile.in < prev    next >
Encoding:
Makefile  |  1996-07-04  |  9.7 KB  |  311 lines

  1. #
  2. # Makefile
  3. #   Copyright (C) 1990, 1991, 1992, 1993 Free Software Foundation
  4. #
  5. # This file is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2 of the License, or
  8. # (at your option) any later version.
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13. # You should have received a copy of the GNU General Public License
  14. # along with this program; if not, write to the Free Software
  15. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
  16. #
  17.  
  18. VPATH = @srcdir@
  19. srcdir = @srcdir@
  20.  
  21. prefix = @prefix@
  22.  
  23. exec_prefix = @exec_prefix@
  24. bindir = @bindir@
  25. libdir = @libdir@
  26.  
  27. datadir = @datadir@
  28. mandir = @mandir@
  29. man1dir = $(mandir)/man1
  30. man2dir = $(mandir)/man2
  31. man3dir = $(mandir)/man3
  32. man4dir = $(mandir)/man4
  33. man5dir = $(mandir)/man5
  34. man6dir = $(mandir)/man6
  35. man7dir = $(mandir)/man7
  36. man8dir = $(mandir)/man8
  37. man9dir = $(mandir)/man9
  38. infodir = @infodir@
  39. includedir = @includedir@
  40.  
  41. MKDOC=./chew
  42. SHELL = /bin/sh
  43.  
  44. INSTALL = @INSTALL@
  45. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  46. INSTALL_DATA = @INSTALL_DATA@
  47.  
  48. MAKEINFO = makeinfo
  49. TEXI2DVI = texi2dvi
  50. CFLAGS = -g
  51.  
  52. CC_FOR_BUILD = $(CC)
  53.  
  54. #### Host, target, and site specific Makefile fragments come in here.
  55. ###
  56.  
  57. .c.o:
  58.     $(CC) -c -I.. -I$(srcdir)/.. -I$(srcdir)/../../include $(H_CFLAGS) $(CFLAGS) $<
  59.  
  60. DOCFILES = aoutx.texi  archive.texi archures.texi \
  61.     bfd.texi  cache.texi coffcode.texi \
  62.     core.texi elf.texi elfcode.texi  format.texi  libbfd.texi  \
  63.     opncls.texi  reloc.texi  section.texi  \
  64.     syms.texi  targets.texi init.texi hash.texi linker.texi
  65.  
  66. PROTOS = archive.p archures.p bfd.p \
  67.      core.p format.p \
  68.     libbfd.p opncls.p reloc.p \
  69.     section.p syms.p targets.p  \
  70.     format.p  core.p init.p
  71.  
  72. IPROTOS = cache.ip libbfd.ip reloc.ip init.ip archures.ip coffcode.ip
  73.  
  74. # SRCDOC, SRCPROT, SRCIPROT only used to sidestep Sun Make bug in interaction 
  75. # between VPATH and suffix rules.  If you use GNU Make, perhaps other Makes,
  76. # you don't need these three:
  77. SRCDOC = $(srcdir)/../aoutx.h  $(srcdir)/../archive.c \
  78.     $(srcdir)/../archures.c $(srcdir)/../bfd.c \
  79.     $(srcdir)/../cache.c $(srcdir)/../coffcode.h \
  80.     $(srcdir)/../corefile.c $(srcdir)/../elf.c \
  81.     $(srcdir)/../elfcode.h  $(srcdir)/../format.c \
  82.     $(srcdir)/../libbfd.c $(srcdir)/../opncls.c \
  83.     $(srcdir)/../reloc.c  $(srcdir)/../section.c \
  84.     $(srcdir)/../syms.c  $(srcdir)/../targets.c \
  85.     $(srcdir)/../hash.c $(srcdir)/../linker.c
  86.  
  87. SRCPROT = $(srcdir)/../archive.c $(srcdir)/../archures.c \
  88.     $(srcdir)/../bfd.c $(srcdir)/../coffcode.h $(srcdir)/../corefile.c \
  89.     $(srcdir)/../format.c $(srcdir)/../libbfd.c \
  90.     $(srcdir)/../opncls.c $(srcdir)/../reloc.c \
  91.     $(srcdir)/../section.c $(srcdir)/../syms.c \
  92.     $(srcdir)/../targets.c $(srcdir)/../init.c
  93.  
  94. SRCIPROT = $(srcdir)/../cache.c $(srcdir)/../libbfd.c \
  95.     $(srcdir)/../reloc.c $(srcdir)/../cpu-h8300.c \
  96.     $(srcdir)/../cpu-i960.c $(srcdir)/../archures.c \
  97.     $(srcdir)/../init.c
  98.  
  99. STAGESTUFF = $(DOCFILES) *.info*
  100.  
  101. TEXIDIR = $(srcdir)/../../texinfo/fsf
  102.  
  103. all install:
  104.  
  105. info: bfd.info
  106.  
  107. dvi: bfd.dvi
  108.  
  109. install-info: info
  110.     for i in *.info* ; do \
  111.         $(INSTALL_DATA) $$i $(infodir)/$$i ; \
  112.     done
  113.  
  114. docs: $(MKDOC) protos bfd.info bfd.dvi bfd.ps
  115.  
  116. $(MKDOC): chew.o
  117.     $(CC_FOR_BUILD) -o $(MKDOC) chew.o $(LOADLIBES) $(LDFLAGS)
  118.  
  119. chew.o: chew.c
  120.     $(CC_FOR_BUILD) -c -I.. -I$(srcdir)/.. -I$(srcdir)/../../include $(H_CFLAGS) $(CFLAGS) $(srcdir)/chew.c
  121.  
  122. protos: libbfd.h libcoff.h bfd.h
  123.  
  124.  
  125. # We can't replace these rules with an implicit rule, because
  126. # makes without VPATH support couldn't find the .h files in `..'.
  127.  
  128. aoutx.texi: $(MKDOC) $(srcdir)/../aoutx.h $(srcdir)/doc.str
  129.     $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../aoutx.h >aoutx.texi
  130.  
  131. archive.texi: $(MKDOC) $(srcdir)/../archive.c $(srcdir)/doc.str
  132.     $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../archive.c >archive.texi 
  133.  
  134. archures.texi: $(MKDOC) $(srcdir)/../archures.c $(srcdir)/doc.str
  135.     $(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../archures.c >archures.texi 
  136.  
  137. bfd.texi: $(MKDOC) $(srcdir)/../bfd.c $(srcdir)/doc.str
  138.     $(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../bfd.c >bfd.texi
  139.  
  140. cache.texi: $(MKDOC) $(srcdir)/../cache.c $(srcdir)/doc.str
  141.     $(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../cache.c >cache.texi
  142.  
  143. coffcode.texi:    $(MKDOC) $(srcdir)/../coffcode.h $(srcdir)/doc.str
  144.     $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../coffcode.h >coffcode.texi
  145.  
  146. core.texi: $(MKDOC) $(srcdir)/../corefile.c $(srcdir)/doc.str
  147.     $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../corefile.c >core.texi
  148.  
  149. elf.texi: $(MKDOC) $(srcdir)/../elf.c $(srcdir)/doc.str
  150.     $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../elf.c >elf.texi
  151.  
  152. elfcode.texi: $(MKDOC) $(srcdir)/../elfcode.h $(srcdir)/doc.str
  153.     $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../elfcode.h >elfcode.texi
  154.  
  155. format.texi: $(MKDOC) $(srcdir)/../format.c $(srcdir)/doc.str
  156.     $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../format.c >format.texi
  157.  
  158. libbfd.texi: $(MKDOC) $(srcdir)/../libbfd.c $(srcdir)/doc.str
  159.     $(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../libbfd.c >libbfd.texi 
  160.  
  161. opncls.texi: $(MKDOC) $(srcdir)/../opncls.c $(srcdir)/doc.str
  162.     $(MKDOC) -f $(srcdir)/doc.str  <$(srcdir)/../opncls.c >opncls.texi
  163.  
  164. reloc.texi : $(MKDOC) $(srcdir)/../reloc.c
  165.     $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../reloc.c >reloc.texi 
  166.  
  167. section.texi: $(MKDOC) $(srcdir)/../section.c $(srcdir)/doc.str
  168.     $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../section.c >section.texi 
  169.  
  170. syms.texi : $(MKDOC) $(srcdir)/../syms.c
  171.     $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../syms.c >syms.texi
  172.  
  173. targets.texi: $(MKDOC) $(srcdir)/../targets.c $(srcdir)/doc.str
  174.     $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../targets.c >targets.texi
  175.  
  176. init.texi: $(MKDOC) $(srcdir)/../init.c $(srcdir)/doc.str
  177.     $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../init.c >init.texi
  178.  
  179. hash.texi: $(MKDOC) $(srcdir)/../hash.c $(srcdir)/doc.str
  180.     $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../hash.c >hash.texi
  181.  
  182. linker.texi: $(MKDOC) $(srcdir)/../linker.c $(srcdir)/doc.str
  183.     $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../linker.c >linker.texi
  184.  
  185. libbfd.h: $(srcdir)/../libbfd-in.h    \
  186.     $(srcdir)/../init.c        \
  187.     $(srcdir)/../libbfd.c        \
  188.     $(srcdir)/../cache.c        \
  189.     $(srcdir)/../reloc.c        \
  190.     $(srcdir)/../cpu-h8300.c    \
  191.     $(srcdir)/../cpu-i960.c        \
  192.     $(srcdir)/../archures.c        \
  193.     $(srcdir)/../elfcode.h        \
  194.     $(srcdir)/proto.str        \
  195.     $(MKDOC)
  196.     cat $(srcdir)/../libbfd-in.h >libbfd.h 
  197.     $(MKDOC) -i -f $(srcdir)/proto.str  < $(srcdir)/../init.c >>libbfd.h
  198.     $(MKDOC) -i -f $(srcdir)/proto.str  < $(srcdir)/../libbfd.c >>libbfd.h
  199.     $(MKDOC) -i -f $(srcdir)/proto.str  < $(srcdir)/../cache.c >>libbfd.h
  200.     $(MKDOC) -i -f $(srcdir)/proto.str  < $(srcdir)/../reloc.c >>libbfd.h
  201.     $(MKDOC) -i -f $(srcdir)/proto.str  < $(srcdir)/../cpu-h8300.c >>libbfd.h
  202.     $(MKDOC) -i -f $(srcdir)/proto.str  < $(srcdir)/../cpu-i960.c >>libbfd.h
  203.     $(MKDOC) -i -f $(srcdir)/proto.str  < $(srcdir)/../archures.c >>libbfd.h
  204.     $(MKDOC) -i -f $(srcdir)/proto.str  < $(srcdir)/../elf.c >>libbfd.h
  205.     $(MKDOC) -i -f $(srcdir)/proto.str  < $(srcdir)/../elfcode.h >>libbfd.h
  206.  
  207. libcoff.h: $(srcdir)/../libcoff-in.h    \
  208.     $(srcdir)/../coffcode.h        \
  209.     $(srcdir)/proto.str        \
  210.     $(MKDOC)
  211.     cat $(srcdir)/../libcoff-in.h >libcoff.h
  212.     $(MKDOC) -i -f $(srcdir)/proto.str  < $(srcdir)/../coffcode.h >>libcoff.h
  213.  
  214. bfd.h: $(srcdir)/../bfd-in.h         \
  215.     $(srcdir)/../init.c         \
  216.     $(srcdir)/../opncls.c         \
  217.     $(srcdir)/../libbfd.c         \
  218.     $(srcdir)/../section.c         \
  219.     $(srcdir)/../archures.c        \
  220.     $(srcdir)/../reloc.c        \
  221.     $(srcdir)/../syms.c        \
  222.     $(srcdir)/../bfd.c        \
  223.     $(srcdir)/../archive.c        \
  224.     $(srcdir)/../corefile.c        \
  225.     $(srcdir)/../targets.c        \
  226.     $(srcdir)/../format.c        \
  227.     $(srcdir)/proto.str        \
  228.     $(MKDOC)
  229.     cat $(srcdir)/../bfd-in.h >bfd.h
  230.     $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../init.c >>bfd.h
  231.     $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../opncls.c >>bfd.h
  232.     $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../libbfd.c >>bfd.h
  233.     $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../section.c >>bfd.h
  234.     $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../archures.c >>bfd.h
  235.     $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../reloc.c >>bfd.h
  236.     $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../syms.c >>bfd.h
  237.     $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../bfd.c >>bfd.h
  238.     $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../archive.c >>bfd.h
  239.     $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../corefile.c >>bfd.h
  240.     $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../targets.c >>bfd.h
  241.     $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../format.c >>bfd.h    
  242.     echo "#ifdef __cplusplus" >>bfd.h
  243.     echo "}" >>bfd.h
  244.     echo "#endif" >>bfd.h
  245.     echo "#endif" >>bfd.h
  246.  
  247.  
  248. clean-info: clean
  249.  
  250. mostlyclean:
  251.     rm -rf *.log *.ps *~* *.dvi *# $(MKDOC) *.o
  252.  
  253. clean: mostlyclean
  254.     rm -rf $(STAGESTUFF)
  255.     rm -f *.p *.ip  bfd.?? bfd.??? bfd.h libbfd.h libcoff.h texput.log 
  256.  
  257. distclean: clean
  258.     rm -f Makefile config.status
  259.  
  260. maintainer-clean realclean: clean
  261.     rm -f Makefile config.status
  262.  
  263. bfd.info: $(DOCFILES) bfdsumm.texi bfd.texinfo
  264.     $(MAKEINFO) -I$(srcdir) -o bfd.info $(srcdir)/bfd.texinfo
  265.  
  266. bfd.dvi: $(DOCFILES) bfdsumm.texi bfd.texinfo
  267.     $(TEXI2DVI) $(srcdir)/bfd.texinfo
  268.  
  269. bfd.ps: bfd.dvi
  270.     dvips bfd -o
  271.  
  272. quickdoc: $(DOCFILES) bfdsumm.texi bfd.texinfo
  273.     TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex bfd.texinfo
  274.  
  275. stage1: force
  276.     - mkdir stage1
  277.     - mv -f $(STAGESTUFF) stage1
  278.  
  279. stage2: force
  280.     - mkdir stage2
  281.     - mv -f $(STAGESTUFF) stage2
  282.  
  283. stage3: force
  284.     - mkdir stage3
  285.     - mv -f $(STAGESTUFF) stage3
  286.  
  287. against=stage2
  288.  
  289. comparison: force
  290.     for i in $(STAGESTUFF) ; do cmp $$i $(against)/$$i || exit 1 ; done
  291.  
  292. de-stage1: force
  293.     - (cd stage1 ; mv -f $(STAGESTUFF) ..)
  294.     - rmdir stage1
  295.  
  296. de-stage2: force
  297.     - (cd stage2 ; mv -f $(STAGESTUFF) ..)
  298.     - rmdir stage2
  299.  
  300. de-stage3: force
  301.     - (cd stage3 ; mv -f $(STAGESTUFF) ..)
  302.     - rmdir stage3
  303.  
  304. force:
  305.  
  306. Makefile: $(srcdir)/Makefile.in
  307.     cd .. && CONFIG_FILES=doc/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  308.  
  309.